home *** CD-ROM | disk | FTP | other *** search
- Path: news.telepac.pt!usenet
- From: jcarlosr@mail.telepac.pt (J.Carlos)
- Newsgroups: comp.lang.c++
- Subject: Re: [help] Calling BTRIEVE functions in C?Hello,
- Date: Sat, 06 Jan 1996 15:40:11 GMT
- Organization: telepac
- Message-ID: <4cm8i7$np0@vivaldi.telepac.pt>
- References: <4ch821$ut0@news.doit.wisc.edu>
- NNTP-Posting-Host: lis7_p7.telepac.pt
- X-Newsreader: Forte Free Agent 1.0.82
-
- tuant@hp-3.cae.wisc.edu (Truong Tuan) wrote:
-
- >I am trying to integrate a DOS application to a WINDOWS application(DYNAMICS).
- >To do this, I needed to be able to open DYNAMICS' files, which are BTRIEVE files.
- > ...
- >However, I could not open the files. >When I compile MyCode.C, using the Turbo C++(ver.4.5), everything went OK.
- >However, when I selected RUN (from compiler menu bar) , I got an error message:
- >Error: Undefine symbol BTRV(..).
-
- >Questions:
-
- >1) Could it be the fact that I did not have the BTRIEVE (DOS version) running
- > before I tried to run MyCode.exe? If so, how do I run BTRIEVE before
- > running my program?
-
- No, this is a linker error, the problem is that in Windows the
- function that call's BTRIEVE is BTRCALL instead of BTRV, to use BTRV
- you must add a C module to your projects that comes with the Btrv
- developer kit (something like WBTRINTF.C), you also have to include
- the BTRIEVE library in the project.
- In Windows you don't 'run' BTRIEVE, keep the DLL's and the EXE in you
- path and your first call to the database will handle the
- inicialization.
-
- >2) Do I need the DOS version of BTRIEVE when I already got the WINDOWS version?
-
- No, you don't ...
-
- Regards, J.Carlos
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- >Keywords:
-
-
-
-